const phoneHandler = {
    
    set(target, name, value) {
       /*  console.log(target, name, value); */
        target[name] = value.match(/\d/g);
        console.log(target[name]);
       
    },
    get(target, name) {
        
        /* console.log(target[name]); */
       
         return target[name].join('').replace(/(\d{3})(\d{3})(\d{4})/,'($1) $2-$3')
    }
};
// {} 
const phoneNumbers = new Proxy({}, phoneHandler); 
// 写操作
phoneNumbers.phone = 'da1dasd2da3ads4ds5a6da7da8da9da0';

// phoneNumbers.get('phone')
console.log(phoneNumbers.phone);